
<!DOCTYPE html>
<html lang="zh-CN">
  <head>
     <include file="Index/head" />
    <link href="__PUBLIC__/css/dashboard.css" rel="stylesheet">

  </head>

  <body>

    <nav class="navbar navbar-inverse navbar-fixed-top">
      <div class="container-fluid">
        <div class="navbar-header">
<!--           <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button> -->
          <a class="navbar-brand" href="#">数据字典</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav navbar-right">
<!--             <li><a href="#">Dashboard</a></li>
            <li><a href="#">Settings</a></li>
            <li><a href="#">Profile</a></li>
            <li><a href="#">Help</a></li> -->
          </ul>
          <form class="navbar-form navbar-right">
            <input type="text" class="form-control" placeholder="Search...">
          </form>
        </div>
      </div>
    </nav>

    <div class="container-fluid">
      <div class="row">
        <div class="col-sm-3 col-md-2 sidebar">
          <include file="Index/menu" />
        </div>
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
          <h2 class="sub-header">添加表</h2>
          <div class="table-responsive">
              <form action="{:U('Home/Database/modify_table')}" method="post">
                <div class="form-group">
                  <label for="exampleInputEmail1">TB_name</label>
                  <input type="text" required="required" name="tb_name" class="form-control" value="{$list.tb_name}">
                </div>
                <div class="form-group">
                  <label for="exampleInputEmail1">TB_name(中文)</label>
                  <input type="text" required="required" name="tb_name_ch" class="form-control" value="{$list.tb_name_ch}">
                </div>
                <div class="form-group">
                  <label for="exampleInputEmail1">数据表编码</label>
                  <select class="form-control" name="tb_encoding">
                    <option value="0">编码选择</option>
                    <option value="utf8" selected="selected">UTF-8</option>
                    <option value="gbk">GBK</option>
                  </select>
                </div>
                <div class="form-group">
                  <label for="exampleInputEmail1">引擎</label>
                  <select class="form-control" name="engine">
                    <option value="0">引擎选择</option>
                    <option value="MyISAM" selected="selected">MyISAM</option>
                    <option value="ISAM">ISAM</option>
                    <option value="HEAP">HEAP</option>
                    <option value="InnoDB">InnoDB</option>
                  </select>
                </div>
                <input type="text" name="dbid" value="{$list.dbid}" hidden="hidden">
                <input type="text" name="tbid" value="{$list.tbid}" hidden="hidden">
                <div style="margin-top:50px;"></div>
                <button type="submit" class="btn btn-success">修改</button>
                <button type="button" class="btn btn-danger" onclick="history.go(-1)">返回</button>
              </form>
          </div>
        </div>
      </div>
    </div>
      <include file="Index/footer" />
      <script type="text/javascript">
      </script>
  </body>
</html>
